package com._54programer.sourcecode.pro;

import org.springframework.boot.CommandLineRunner;
import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

@Component
public class MyAwareCommandLineRunner implements CommandLineRunner, MyAware {

    Flag flag;

    @Override
    public void run(String... args) throws Exception {
        //System.out.println(flag.isCanOperate());
    }

    @Override
    public void setFlag(Flag flag) {
        this.flag = flag;
    }
}
